#ifndef __CMYTANK_ITEM_H
#define __CMYTANK_ITEM_H

#include "CMyGameBase.h"

using namespace cocos2d;

class GameLayer;

class CMyTankItem : public CMyGameBase
{
public:
	CMyTankItem(GameLayer *pGame, int type);
	virtual ~CMyTankItem(void);
	virtual bool init(void);
	virtual void updateObject(void);
	bool isDead(void) { return m_bDead; }
	int getItemType(void) { return m_nItemType; }
	void setStatus(int status);

protected :
	int m_nItemType;
	float m_fSpawnTime;
	int m_fFadeOutTime;
	bool m_bDead;
	int m_nFadeOutTick;
};

#endif // __CMYTANK_ITEM_H